package cate.game.role.pay.trademall.masterprivilege.msg;


import cate.common.annotation.OperationSetter;
import cate.common.table.d.GDOperation;
import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBPrivilege;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "购买特权")
@OperationSetter(value = GDOperation.A_PRIVILEGE_MALL_BUY)
public class BuyPrivilegeReq implements MsgInput {

    @NoteField( "特权tid")
    public int tid;

    @Override
    public void execute(GameBody game, ClientContext cc) {
        cc.getRole().getPay().tradeMall.privilegeMall.buyPrivilege(tid);
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBPrivilege.BUY_PRIVILEGE_REQ;
    }




}
